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

Side by Side Diff: src/messages.h

Issue 1314203002: [strong] Class constructor bodies cannot contain "use strong" directive (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: formatting Created 5 years, 3 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
« no previous file with comments | « no previous file | src/parser.cc » ('j') | test/mjsunit/strong/function-arity.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The infrastructure used for (localized) message reporting in V8. 5 // The infrastructure used for (localized) message reporting in V8.
6 // 6 //
7 // Note: there's a big unresolved issue about ownership of the data 7 // Note: there's a big unresolved issue about ownership of the data
8 // structures used by this framework. 8 // structures used by this framework.
9 9
10 #ifndef V8_MESSAGES_H_ 10 #ifndef V8_MESSAGES_H_
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 "supported outside strict mode") \ 327 "supported outside strict mode") \
328 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ 328 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \
329 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ 329 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \
330 T(StrictFunction, \ 330 T(StrictFunction, \
331 "In strict mode code, functions can only be declared at top level or " \ 331 "In strict mode code, functions can only be declared at top level or " \
332 "immediately within another function.") \ 332 "immediately within another function.") \
333 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \ 333 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \
334 T(StrictWith, "Strict mode code may not include a with statement") \ 334 T(StrictWith, "Strict mode code may not include a with statement") \
335 T(StrongArguments, \ 335 T(StrongArguments, \
336 "In strong mode, 'arguments' is deprecated, use '...args' instead") \ 336 "In strong mode, 'arguments' is deprecated, use '...args' instead") \
337 T(StrongConstructorDirective, \
338 "\"use strong\" directive is disallowed in class constructor body") \
337 T(StrongConstructorReturnMisplaced, \ 339 T(StrongConstructorReturnMisplaced, \
338 "In strong mode, returning from a constructor before its super " \ 340 "In strong mode, returning from a constructor before its super " \
339 "constructor invocation or all assignments to 'this' is deprecated") \ 341 "constructor invocation or all assignments to 'this' is deprecated") \
340 T(StrongConstructorReturnValue, \ 342 T(StrongConstructorReturnValue, \
341 "In strong mode, returning a value from a constructor is deprecated") \ 343 "In strong mode, returning a value from a constructor is deprecated") \
342 T(StrongConstructorSuper, \ 344 T(StrongConstructorSuper, \
343 "In strong mode, 'super' can only be used to invoke the super " \ 345 "In strong mode, 'super' can only be used to invoke the super " \
344 "constructor, and cannot be nested inside another statement or " \ 346 "constructor, and cannot be nested inside another statement or " \
345 "expression") \ 347 "expression") \
346 T(StrongConstructorThis, \ 348 T(StrongConstructorThis, \
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 484
483 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( 485 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty(
484 Isolate* isolate, LookupIterator* property_lookup, 486 Isolate* isolate, LookupIterator* property_lookup,
485 Handle<String> default_value); 487 Handle<String> default_value);
486 488
487 List<Handle<JSObject> > visited_; 489 List<Handle<JSObject> > visited_;
488 }; 490 };
489 } } // namespace v8::internal 491 } } // namespace v8::internal
490 492
491 #endif // V8_MESSAGES_H_ 493 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/parser.cc » ('j') | test/mjsunit/strong/function-arity.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698