],
'msvs_settings': {
'VCCLCompilerTool': {
- 'target_conditions': [
- ['library=="static_library"', {
- 'RuntimeLibrary': 1, # static debug
- }, {
- 'RuntimeLibrary': 3, # DLL debug
- }],
- ],
+ 'RuntimeLibrary': 1, # static debug
'Optimization': 0, # /Od, no optimization
- 'MinimalRebuild': 'true',
+ 'MinimalRebuild': 'false',
'OmitFramePointers': 'false',
'BasicRuntimeChecks': 3, # /RTC1
},
using v8::Context;
using v8::Arguments;
using v8::Integer;
+ using v8::Exception;
+ using v8::ThrowException;
+static Persistent<String> onexit_sym;
class ProcessWrap : public HandleWrap {
public:
}
// options.cwd
- Local<Value> cwd_v = js_options->Get(String::New("cwd"));
+ Local<Value> cwd_v = js_options->Get(String::NewSymbol("cwd"));
String::Utf8Value cwd(cwd_v->IsString() ? cwd_v : Local<Value>());
- if (cwd.length() > 0) {
+ if (cwd.length() > 0) {
options.cwd = *cwd;
- }
+ }
// options.env
- Local<Value> env_v = js_options->Get(String::New("envPairs"));
+ Local<Value> env_v = js_options->Get(String::NewSymbol("envPairs"));
if (!env_v.IsEmpty() && env_v->IsArray()) {
Local<Array> env = Local<Array>::Cast(env_v);
int envc = env->Length();