| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 debug->debug_context()->set_security_token( | 107 debug->debug_context()->set_security_token( |
| 108 v8::Utils::OpenHandle(*context_)->security_token()); | 108 v8::Utils::OpenHandle(*context_)->security_token()); |
| 109 | 109 |
| 110 Handle<JSGlobalProxy> global(Handle<JSGlobalProxy>::cast( | 110 Handle<JSGlobalProxy> global(Handle<JSGlobalProxy>::cast( |
| 111 v8::Utils::OpenHandle(*context_->Global()))); | 111 v8::Utils::OpenHandle(*context_->Global()))); |
| 112 Handle<v8::internal::String> debug_string = | 112 Handle<v8::internal::String> debug_string = |
| 113 factory->InternalizeOneByteString(STATIC_ASCII_VECTOR("debug")); | 113 factory->InternalizeOneByteString(STATIC_ASCII_VECTOR("debug")); |
| 114 v8::internal::Runtime::SetObjectProperty(isolate, global, debug_string, | 114 v8::internal::Runtime::SetObjectProperty(isolate, global, debug_string, |
| 115 Handle<Object>(debug->debug_context()->global_proxy(), isolate), | 115 Handle<Object>(debug->debug_context()->global_proxy(), isolate), |
| 116 DONT_ENUM, | 116 DONT_ENUM, |
| 117 ::v8::internal::kSloppyMode); | 117 ::v8::internal::SLOPPY); |
| 118 } | 118 } |
| 119 | 119 |
| 120 private: | 120 private: |
| 121 v8::HandleScope scope_; | 121 v8::HandleScope scope_; |
| 122 v8::Local<v8::Context> context_; | 122 v8::Local<v8::Context> context_; |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 | 125 |
| 126 // --- H e l p e r F u n c t i o n s | 126 // --- H e l p e r F u n c t i o n s |
| 127 | 127 |
| (...skipping 7566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7694 TEST(LiveEditDisabled) { | 7694 TEST(LiveEditDisabled) { |
| 7695 v8::internal::FLAG_allow_natives_syntax = true; | 7695 v8::internal::FLAG_allow_natives_syntax = true; |
| 7696 LocalContext env; | 7696 LocalContext env; |
| 7697 v8::HandleScope scope(env->GetIsolate()); | 7697 v8::HandleScope scope(env->GetIsolate()); |
| 7698 v8::Debug::SetLiveEditEnabled(false, env->GetIsolate()); | 7698 v8::Debug::SetLiveEditEnabled(false, env->GetIsolate()); |
| 7699 CompileRun("%LiveEditCompareStrings('', '')"); | 7699 CompileRun("%LiveEditCompareStrings('', '')"); |
| 7700 } | 7700 } |
| 7701 | 7701 |
| 7702 | 7702 |
| 7703 #endif // ENABLE_DEBUGGER_SUPPORT | 7703 #endif // ENABLE_DEBUGGER_SUPPORT |
| OLD | NEW |