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

Side by Side Diff: src/messages.h

Issue 1929123002: Add checks for detached ArrayBuffers to ArrayBuffer.prototype.slice (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix tests Created 4 years, 7 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 | « src/js/arraybuffer.js ('k') | src/runtime/runtime-typedarray.cc » ('j') | no next file with comments »
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 T(ConstructorNotFunction, "Constructor % requires 'new'") \ 110 T(ConstructorNotFunction, "Constructor % requires 'new'") \
111 T(ConstructorNotReceiver, "The .constructor property is not an object") \ 111 T(ConstructorNotReceiver, "The .constructor property is not an object") \
112 T(CurrencyCode, "Currency code is required with currency style.") \ 112 T(CurrencyCode, "Currency code is required with currency style.") \
113 T(DataViewNotArrayBuffer, \ 113 T(DataViewNotArrayBuffer, \
114 "First argument to DataView constructor must be an ArrayBuffer") \ 114 "First argument to DataView constructor must be an ArrayBuffer") \
115 T(DateType, "this is not a Date object.") \ 115 T(DateType, "this is not a Date object.") \
116 T(DebuggerFrame, "Debugger: Invalid frame index.") \ 116 T(DebuggerFrame, "Debugger: Invalid frame index.") \
117 T(DebuggerType, "Debugger: Parameters have wrong types.") \ 117 T(DebuggerType, "Debugger: Parameters have wrong types.") \
118 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \ 118 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \
119 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ 119 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \
120 T(DetachedOperation, \
121 "Cannot perform % on a detached ArrayBuffer") \
120 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ 122 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \
121 T(ExtendsValueGenerator, \ 123 T(ExtendsValueGenerator, \
122 "Class extends value % may not be a generator function") \ 124 "Class extends value % may not be a generator function") \
123 T(ExtendsValueNotFunction, \ 125 T(ExtendsValueNotFunction, \
124 "Class extends value % is not a function or null") \ 126 "Class extends value % is not a function or null") \
125 T(FirstArgumentNotRegExp, \ 127 T(FirstArgumentNotRegExp, \
126 "First argument to % must not be a regular expression") \ 128 "First argument to % must not be a regular expression") \
127 T(FunctionBind, "Bind must be called on a function") \ 129 T(FunctionBind, "Bind must be called on a function") \
128 T(GeneratorRunning, "Generator is already running") \ 130 T(GeneratorRunning, "Generator is already running") \
129 T(IllegalInvocation, "Illegal invocation") \ 131 T(IllegalInvocation, "Illegal invocation") \
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 517 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
516 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 518 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
517 Handle<Object> data); 519 Handle<Object> data);
518 }; 520 };
519 521
520 522
521 } // namespace internal 523 } // namespace internal
522 } // namespace v8 524 } // namespace v8
523 525
524 #endif // V8_MESSAGES_H_ 526 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/js/arraybuffer.js ('k') | src/runtime/runtime-typedarray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698