Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: test/cctest/test-debug.cc

Issue 177683002: Mode clean-up pt 1: rename classic/non-strict mode to sloppy mode (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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::kNonStrictMode); 117 ::v8::internal::kSloppyMode);
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
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
OLDNEW
« src/preparser.h ('K') | « test/cctest/test-compiler.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698