2008-09-09 20:08:45 +00:00
|
|
|
// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
2014-04-29 06:42:26 +00:00
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
// The infrastructure used for (localized) message reporting in V8.
|
|
|
|
//
|
|
|
|
// Note: there's a big unresolved issue about ownership of the data
|
|
|
|
// structures used by this framework.
|
|
|
|
|
|
|
|
#ifndef V8_MESSAGES_H_
|
|
|
|
#define V8_MESSAGES_H_
|
|
|
|
|
2015-08-11 12:00:01 +00:00
|
|
|
#include "src/base/smart-pointers.h"
|
2015-08-20 07:44:00 +00:00
|
|
|
#include "src/handles.h"
|
2015-08-11 12:00:01 +00:00
|
|
|
#include "src/list.h"
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2009-05-25 10:05:56 +00:00
|
|
|
namespace v8 {
|
|
|
|
namespace internal {
|
2008-07-03 15:10:15 +00:00
|
|
|
|
2015-08-11 12:00:01 +00:00
|
|
|
// Forward declarations.
|
|
|
|
class JSMessageObject;
|
|
|
|
class LookupIterator;
|
2008-07-03 15:10:15 +00:00
|
|
|
class SourceInfo;
|
|
|
|
|
|
|
|
class MessageLocation {
|
|
|
|
public:
|
2015-01-21 13:40:32 +00:00
|
|
|
MessageLocation(Handle<Script> script, int start_pos, int end_pos,
|
|
|
|
Handle<JSFunction> function = Handle<JSFunction>())
|
2008-07-03 15:10:15 +00:00
|
|
|
: script_(script),
|
|
|
|
start_pos_(start_pos),
|
2015-01-21 13:40:32 +00:00
|
|
|
end_pos_(end_pos),
|
|
|
|
function_(function) {}
|
2008-09-09 18:55:41 +00:00
|
|
|
MessageLocation() : start_pos_(-1), end_pos_(-1) { }
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
Handle<Script> script() const { return script_; }
|
|
|
|
int start_pos() const { return start_pos_; }
|
|
|
|
int end_pos() const { return end_pos_; }
|
2015-01-21 13:40:32 +00:00
|
|
|
Handle<JSFunction> function() const { return function_; }
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Handle<Script> script_;
|
|
|
|
int start_pos_;
|
|
|
|
int end_pos_;
|
2015-01-21 13:40:32 +00:00
|
|
|
Handle<JSFunction> function_;
|
2008-07-03 15:10:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2015-04-28 08:53:12 +00:00
|
|
|
class CallSite {
|
|
|
|
public:
|
2015-08-21 06:44:17 +00:00
|
|
|
CallSite(Isolate* isolate, Handle<JSObject> call_site_obj);
|
2015-04-28 08:53:12 +00:00
|
|
|
|
2015-08-21 06:44:17 +00:00
|
|
|
Handle<Object> GetFileName();
|
|
|
|
Handle<Object> GetFunctionName();
|
2016-02-18 09:42:48 +00:00
|
|
|
Handle<Object> GetDebugName();
|
2015-08-21 06:44:17 +00:00
|
|
|
Handle<Object> GetScriptNameOrSourceUrl();
|
|
|
|
Handle<Object> GetMethodName();
|
2015-04-28 08:53:12 +00:00
|
|
|
// Return 1-based line number, including line offset.
|
2015-08-21 06:44:17 +00:00
|
|
|
int GetLineNumber();
|
2015-04-28 08:53:12 +00:00
|
|
|
// Return 1-based column number, including column offset if first line.
|
2015-08-21 06:44:17 +00:00
|
|
|
int GetColumnNumber();
|
|
|
|
bool IsNative();
|
|
|
|
bool IsToplevel();
|
|
|
|
bool IsEval();
|
|
|
|
bool IsConstructor();
|
2015-04-28 08:53:12 +00:00
|
|
|
|
2015-10-13 10:53:06 +00:00
|
|
|
bool IsValid() { return !fun_.is_null(); }
|
|
|
|
|
2015-04-28 08:53:12 +00:00
|
|
|
private:
|
2015-08-21 06:44:17 +00:00
|
|
|
Isolate* isolate_;
|
2015-04-28 08:53:12 +00:00
|
|
|
Handle<Object> receiver_;
|
|
|
|
Handle<JSFunction> fun_;
|
2015-12-09 17:28:19 +00:00
|
|
|
int32_t pos_;
|
2015-04-28 08:53:12 +00:00
|
|
|
};
|
|
|
|
|
2015-04-21 09:03:24 +00:00
|
|
|
#define MESSAGE_TEMPLATES(T) \
|
|
|
|
/* Error */ \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(None, "") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(CyclicProto, "Cyclic __proto__ value") \
|
2015-08-12 14:22:07 +00:00
|
|
|
T(Debugger, "Debugger: %") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(DebuggerLoading, "Error loading debugger") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(DefaultOptionsMissing, "Internal % error. Default options are missing.") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(UncaughtException, "Uncaught %") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(Unsupported, "Not supported") \
|
|
|
|
T(WrongServiceType, "Internal error, wrong service type: %") \
|
|
|
|
T(WrongValueType, "Internal error. Wrong value type.") \
|
2015-04-21 09:03:24 +00:00
|
|
|
/* TypeError */ \
|
|
|
|
T(ApplyNonFunction, \
|
|
|
|
"Function.prototype.apply was called on %, which is a % and not a " \
|
|
|
|
"function") \
|
2016-01-12 06:07:48 +00:00
|
|
|
T(ArrayBufferTooShort, \
|
|
|
|
"Derived ArrayBuffer constructor created a buffer which was too small") \
|
|
|
|
T(ArrayBufferSpeciesThis, \
|
|
|
|
"ArrayBuffer subclass returned this from species constructor") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \
|
|
|
|
T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \
|
2015-05-07 10:00:21 +00:00
|
|
|
T(ArrayNotSubclassable, "Subclassing Arrays is not currently supported.") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(CalledNonCallable, "% is not a function") \
|
|
|
|
T(CalledOnNonObject, "% called on non-object") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(CalledOnNullOrUndefined, "% called on null or undefined") \
|
2015-12-09 17:28:19 +00:00
|
|
|
T(CallSiteExpectsFunction, \
|
|
|
|
"CallSite expects function as second argument, got %") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(CannotConvertToPrimitive, "Cannot convert object to primitive value") \
|
2015-10-05 12:08:44 +00:00
|
|
|
T(CannotPreventExt, "Cannot prevent extensions") \
|
2015-10-26 11:07:48 +00:00
|
|
|
T(CannotFreezeArrayBufferView, \
|
|
|
|
"Cannot freeze array buffer views with elements") \
|
2015-05-12 13:52:26 +00:00
|
|
|
T(CircularStructure, "Converting circular structure to JSON") \
|
2015-12-30 22:13:40 +00:00
|
|
|
T(ConstructAbstractClass, "Abstract class % not directly constructable") \
|
2015-05-12 13:52:26 +00:00
|
|
|
T(ConstAssign, "Assignment to constant variable.") \
|
2015-05-07 10:00:21 +00:00
|
|
|
T(ConstructorNonCallable, \
|
2015-11-24 17:16:40 +00:00
|
|
|
"Class constructor % cannot be invoked without 'new'") \
|
2015-05-05 07:57:37 +00:00
|
|
|
T(ConstructorNotFunction, "Constructor % requires 'new'") \
|
2016-01-12 06:07:48 +00:00
|
|
|
T(ConstructorNotReceiver, "The .constructor property is not an object") \
|
2015-05-05 07:57:37 +00:00
|
|
|
T(CurrencyCode, "Currency code is required with currency style.") \
|
2015-05-06 07:51:56 +00:00
|
|
|
T(DataViewNotArrayBuffer, \
|
|
|
|
"First argument to DataView constructor must be an ArrayBuffer") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(DateType, "this is not a Date object.") \
|
2015-08-12 14:22:07 +00:00
|
|
|
T(DebuggerFrame, "Debugger: Invalid frame index.") \
|
|
|
|
T(DebuggerType, "Debugger: Parameters have wrong types.") \
|
2015-11-04 19:26:13 +00:00
|
|
|
T(DeclarationMissingInitializer, "Missing initializer in % declaration") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \
|
2015-05-12 13:52:26 +00:00
|
|
|
T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \
|
|
|
|
T(ExtendsValueGenerator, \
|
|
|
|
"Class extends value % may not be a generator function") \
|
|
|
|
T(ExtendsValueNotFunction, \
|
|
|
|
"Class extends value % is not a function or null") \
|
2015-04-30 16:22:00 +00:00
|
|
|
T(FirstArgumentNotRegExp, \
|
|
|
|
"First argument to % must not be a regular expression") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(FunctionBind, "Bind must be called on a function") \
|
2015-04-30 16:22:00 +00:00
|
|
|
T(GeneratorRunning, "Generator is already running") \
|
2015-05-12 13:52:26 +00:00
|
|
|
T(IllegalInvocation, "Illegal invocation") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(IncompatibleMethodReceiver, "Method % called on incompatible receiver %") \
|
|
|
|
T(InstanceofFunctionExpected, \
|
|
|
|
"Expecting a function in instanceof check, but got %") \
|
|
|
|
T(InstanceofNonobjectProto, \
|
|
|
|
"Function has non-object prototype '%' in instanceof check") \
|
2015-05-06 07:51:56 +00:00
|
|
|
T(InvalidArgument, "invalid_argument") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(InvalidInOperatorUse, "Cannot use 'in' operator to search for '%' in %") \
|
2015-11-23 21:24:50 +00:00
|
|
|
T(InvalidSimdOperation, "% is not a valid type for this SIMD operation.") \
|
2015-05-05 07:57:37 +00:00
|
|
|
T(IteratorResultNotAnObject, "Iterator result % is not an object") \
|
|
|
|
T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(LanguageID, "Language ID should be string or object.") \
|
|
|
|
T(MethodCalledOnWrongObject, \
|
|
|
|
"Method % called on a non-object or on a wrong type of object.") \
|
|
|
|
T(MethodInvokedOnNullOrUndefined, \
|
|
|
|
"Method invoked on undefined or null value.") \
|
|
|
|
T(MethodInvokedOnWrongType, "Method invoked on an object that is not %.") \
|
2015-05-15 13:32:32 +00:00
|
|
|
T(NoAccess, "no access") \
|
2015-05-18 20:15:08 +00:00
|
|
|
T(NonCoercible, "Cannot match against 'undefined' or 'null'.") \
|
2015-05-12 13:52:26 +00:00
|
|
|
T(NonExtensibleProto, "% is not extensible") \
|
|
|
|
T(NonObjectPropertyLoad, "Cannot read property '%' of %") \
|
|
|
|
T(NonObjectPropertyStore, "Cannot set property '%' of %") \
|
|
|
|
T(NoSetterInCallback, "Cannot set property % of % which has only a getter") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(NotAnIterator, "% is not an iterator") \
|
2015-05-06 07:51:56 +00:00
|
|
|
T(NotAPromise, "% is not a promise") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(NotConstructor, "% is not a constructor") \
|
2015-05-12 13:52:26 +00:00
|
|
|
T(NotDateObject, "this is not a Date object.") \
|
|
|
|
T(NotIntlObject, "% is not an i18n object.") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(NotGeneric, "% is not generic") \
|
|
|
|
T(NotIterable, "% is not iterable") \
|
2015-11-28 15:02:59 +00:00
|
|
|
T(NotPropertyName, "% is not a valid property name") \
|
2015-05-05 07:57:37 +00:00
|
|
|
T(NotTypedArray, "this is not a typed array.") \
|
2015-06-03 17:58:29 +00:00
|
|
|
T(NotSharedTypedArray, "% is not a shared typed array.") \
|
|
|
|
T(NotIntegerSharedTypedArray, "% is not an integer shared typed array.") \
|
2015-07-17 17:11:32 +00:00
|
|
|
T(NotInt32SharedTypedArray, "% is not an int32 shared typed array.") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(ObjectGetterExpectingFunction, \
|
|
|
|
"Object.prototype.__defineGetter__: Expecting function") \
|
|
|
|
T(ObjectGetterCallable, "Getter must be a function: %") \
|
2015-05-12 13:52:26 +00:00
|
|
|
T(ObjectNotExtensible, "Can't add property %, object is not extensible") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(ObjectSetterExpectingFunction, \
|
|
|
|
"Object.prototype.__defineSetter__: Expecting function") \
|
|
|
|
T(ObjectSetterCallable, "Setter must be a function: %") \
|
2015-05-05 07:57:37 +00:00
|
|
|
T(ObserveCallbackFrozen, \
|
|
|
|
"Object.observe cannot deliver to a frozen function object") \
|
|
|
|
T(ObserveGlobalProxy, "% cannot be called on the global proxy object") \
|
2015-09-16 21:19:21 +00:00
|
|
|
T(ObserveAccessChecked, "% cannot be called on access-checked objects") \
|
2015-05-05 07:57:37 +00:00
|
|
|
T(ObserveInvalidAccept, \
|
|
|
|
"Third argument to Object.observe must be an array of strings.") \
|
|
|
|
T(ObserveNonFunction, "Object.% cannot deliver to non-function") \
|
|
|
|
T(ObserveNonObject, "Object.% cannot % non-object") \
|
|
|
|
T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \
|
|
|
|
T(ObservePerformNonFunction, "Cannot perform non-function") \
|
|
|
|
T(ObservePerformNonString, "Invalid non-string changeType") \
|
|
|
|
T(ObserveTypeNonString, \
|
|
|
|
"Invalid changeRecord with non-string 'type' property") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(OrdinaryFunctionCalledAsConstructor, \
|
|
|
|
"Function object that's not a constructor was created with new") \
|
2015-05-06 07:51:56 +00:00
|
|
|
T(PromiseCyclic, "Chaining cycle detected for promise %") \
|
2016-01-05 22:18:30 +00:00
|
|
|
T(PromiseExecutorAlreadyInvoked, \
|
|
|
|
"Promise executor has already been invoked with non-undefined arguments") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(PropertyDescObject, "Property description must be an object: %") \
|
2015-12-02 12:25:02 +00:00
|
|
|
T(PropertyNotFunction, \
|
|
|
|
"'%' returned for property '%' of object '%' is not a function") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \
|
2015-05-12 13:52:26 +00:00
|
|
|
T(PrototypeParentNotAnObject, \
|
|
|
|
"Class extends value does not have valid prototype property %") \
|
2015-12-14 13:44:38 +00:00
|
|
|
T(ProxyConstructNonObject, \
|
|
|
|
"'construct' on proxy: trap returned non-object ('%')") \
|
|
|
|
T(ProxyDefinePropertyNonConfigurable, \
|
|
|
|
"'defineProperty' on proxy: trap returned truish for defining " \
|
|
|
|
"non-configurable property '%' which is either non-existant or " \
|
|
|
|
"configurable in the proxy target") \
|
|
|
|
T(ProxyDefinePropertyNonExtensible, \
|
|
|
|
"'defineProperty' on proxy: trap returned truish for adding property '%' " \
|
|
|
|
" to the non-extensible proxy target") \
|
|
|
|
T(ProxyDefinePropertyIncompatible, \
|
|
|
|
"'defineProperty' on proxy: trap returned truish for adding property '%' " \
|
|
|
|
" that is incompatible with the existing property in the proxy target") \
|
|
|
|
T(ProxyDeletePropertyNonConfigurable, \
|
|
|
|
"'deleteProperty' on proxy: trap returned truish for property '%' which " \
|
|
|
|
"is non-configurable in the proxy target") \
|
|
|
|
T(ProxyEnumerateNonObject, "'enumerate' on proxy: trap returned non-object") \
|
|
|
|
T(ProxyEnumerateNonString, \
|
|
|
|
"'enumerate' on proxy: trap result includes non-string") \
|
|
|
|
T(ProxyGetNonConfigurableData, \
|
|
|
|
"'get' on proxy: property '%' is a read-only and " \
|
|
|
|
"non-configurable data property on the proxy target but the proxy " \
|
|
|
|
"did not return its actual value (expected '%' but got '%')") \
|
|
|
|
T(ProxyGetNonConfigurableAccessor, \
|
|
|
|
"'get' on proxy: property '%' is a non-configurable accessor " \
|
|
|
|
"property on the proxy target and does not have a getter function, but " \
|
|
|
|
"the trap did not return 'undefined' (got '%')") \
|
|
|
|
T(ProxyGetOwnPropertyDescriptorIncompatible, \
|
|
|
|
"'getOwnPropertyDescriptor' on proxy: trap returned descriptor for " \
|
|
|
|
"property '%' that is incompatible with the existing property in the " \
|
|
|
|
"proxy target") \
|
|
|
|
T(ProxyGetOwnPropertyDescriptorInvalid, \
|
|
|
|
"'getOwnPropertyDescriptor' on proxy: trap returned neither object nor " \
|
|
|
|
"undefined for property '%'") \
|
|
|
|
T(ProxyGetOwnPropertyDescriptorNonConfigurable, \
|
|
|
|
"'getOwnPropertyDescriptor' on proxy: trap reported non-configurability " \
|
|
|
|
"for property '%' which is either non-existant or configurable in the " \
|
|
|
|
"proxy target") \
|
|
|
|
T(ProxyGetOwnPropertyDescriptorNonExtensible, \
|
|
|
|
"'getOwnPropertyDescriptor' on proxy: trap returned undefined for " \
|
|
|
|
"property '%' which exists in the non-extensible proxy target") \
|
|
|
|
T(ProxyGetOwnPropertyDescriptorUndefined, \
|
|
|
|
"'getOwnPropertyDescriptor' on proxy: trap returned undefined for " \
|
|
|
|
"property '%' which is non-configurable in the proxy target") \
|
|
|
|
T(ProxyGetPrototypeOfInvalid, \
|
|
|
|
"'getPrototypeOf' on proxy: trap returned neither object nor null") \
|
|
|
|
T(ProxyGetPrototypeOfNonExtensible, \
|
|
|
|
"'getPrototypeOf' on proxy: proxy target is non-extensible but the " \
|
|
|
|
"trap did not return its actual prototype") \
|
2015-11-30 09:59:17 +00:00
|
|
|
T(ProxyHandlerOrTargetRevoked, \
|
2015-12-14 13:44:38 +00:00
|
|
|
"Cannot create proxy with a revoked proxy as target or handler") \
|
|
|
|
T(ProxyHasNonConfigurable, \
|
|
|
|
"'has' on proxy: trap returned falsish for property '%' which exists in " \
|
|
|
|
"the proxy target as non-configurable") \
|
|
|
|
T(ProxyHasNonExtensible, \
|
|
|
|
"'has' on proxy: trap returned falsish for property '%' but the proxy " \
|
|
|
|
"target is not extensible") \
|
|
|
|
T(ProxyIsExtensibleInconsistent, \
|
|
|
|
"'isExtensible' on proxy: trap result does not reflect extensibility of " \
|
|
|
|
"proxy target (which is '%')") \
|
|
|
|
T(ProxyNonObject, \
|
|
|
|
"Cannot create proxy with a non-object as target or handler") \
|
|
|
|
T(ProxyOwnKeysMissing, \
|
|
|
|
"'ownKeys' on proxy: trap result did not include '%'") \
|
|
|
|
T(ProxyOwnKeysNonExtensible, \
|
|
|
|
"'ownKeys' on proxy: trap returned extra keys but proxy target is " \
|
|
|
|
"non-extensible") \
|
|
|
|
T(ProxyPreventExtensionsExtensible, \
|
|
|
|
"'preventExtensions' on proxy: trap returned truish but the proxy target " \
|
|
|
|
"is extensible") \
|
2016-01-11 16:47:19 +00:00
|
|
|
T(ProxyPrivate, "Cannot pass private property name to proxy trap") \
|
2015-11-24 14:15:58 +00:00
|
|
|
T(ProxyRevoked, "Cannot perform '%' on a proxy that has been revoked") \
|
2015-12-14 13:44:38 +00:00
|
|
|
T(ProxySetFrozenData, \
|
|
|
|
"'set' on proxy: trap returned truish for property '%' which exists in " \
|
|
|
|
"the proxy target as a non-configurable and non-writable data property " \
|
|
|
|
"with a different value") \
|
|
|
|
T(ProxySetFrozenAccessor, \
|
|
|
|
"'set' on proxy: trap returned truish for property '%' which exists in " \
|
|
|
|
"the proxy target as a non-configurable and non-writable accessor " \
|
|
|
|
"property without a setter") \
|
|
|
|
T(ProxySetPrototypeOfNonExtensible, \
|
|
|
|
"'setPrototypeOf' on proxy: trap returned truish for setting a new " \
|
|
|
|
"prototype on the non-extensible proxy target") \
|
|
|
|
T(ProxyTrapReturnedFalsish, "'%' on proxy: trap returned falsish") \
|
|
|
|
T(ProxyTrapReturnedFalsishFor, \
|
|
|
|
"'%' on proxy: trap returned falsish for property '%'") \
|
2015-12-17 14:37:16 +00:00
|
|
|
T(ReadGlobalReferenceThroughProxy, "Trying to access '%' through proxy") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(RedefineDisallowed, "Cannot redefine property: %") \
|
2015-05-12 13:52:26 +00:00
|
|
|
T(RedefineExternalArray, \
|
|
|
|
"Cannot redefine a property of an object with external array elements") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(ReduceNoInitial, "Reduce of empty array with no initial value") \
|
2015-05-15 13:32:32 +00:00
|
|
|
T(RegExpFlags, \
|
|
|
|
"Cannot supply flags when constructing one RegExp from another") \
|
2015-11-05 13:08:39 +00:00
|
|
|
T(RegExpNonObject, "% getter called on non-object %") \
|
|
|
|
T(RegExpNonRegExp, "% getter called on non-RegExp object") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(ReinitializeIntl, "Trying to re-initialize % object.") \
|
|
|
|
T(ResolvedOptionsCalledOnNonObject, \
|
|
|
|
"resolvedOptions method called on a non-object or on a object that is " \
|
|
|
|
"not Intl.%.") \
|
2015-05-06 07:51:56 +00:00
|
|
|
T(ResolverNotAFunction, "Promise resolver % is not a function") \
|
2015-05-12 13:52:26 +00:00
|
|
|
T(RestrictedFunctionProperties, \
|
|
|
|
"'caller' and 'arguments' are restricted function properties and cannot " \
|
|
|
|
"be accessed in this context.") \
|
[es6] Implement for-of iterator finalization
Implements iterator finalisation by desugaring for-of loops with an additional try-finally wrapper. See comment in parser.cc for details.
Also improved some AST printing facilities while there.
@Ross, I had to disable the bytecode generation test for for-of, because it got completely out of hand after this change (the new bytecode has 150+ lines). See the TODO that I assigned to you.
Patch set 1 is WIP patch by Georg (http://crrev.com/1695583003), patch set 2 relative changes.
@Georg, FYI, I changed the following:
- Moved try-finally out of the loop body, for performance, and in order to be able to handle `continue` correctly.
- Fixed scope management in ParseForStatement, which was the cause for the variable allocation failure.
- Fixed pre-existing zone initialisation bug in rewriter, which caused the crashes.
- Enabled all tests, adjusted a few others, added a couple more.
BUG=v8:2214
LOG=Y
Review URL: https://codereview.chromium.org/1695393003
Cr-Commit-Position: refs/heads/master@{#34111}
2016-02-18 10:49:07 +00:00
|
|
|
T(ReturnMethodNotCallable, "The iterator's 'return' method is not callable") \
|
2015-05-12 13:52:26 +00:00
|
|
|
T(StaticPrototype, "Classes may not have static property named prototype") \
|
2016-01-12 06:07:48 +00:00
|
|
|
T(StrictCannotAssign, "Cannot assign to read only '%' in strict mode") \
|
2015-05-12 13:52:26 +00:00
|
|
|
T(StrictDeleteProperty, "Cannot delete property '%' of %") \
|
|
|
|
T(StrictPoisonPill, \
|
|
|
|
"'caller', 'callee', and 'arguments' properties may not be accessed on " \
|
|
|
|
"strict mode functions or the arguments objects for calls to them") \
|
2015-10-09 09:12:28 +00:00
|
|
|
T(StrictReadOnlyProperty, \
|
|
|
|
"Cannot assign to read only property '%' of % '%'") \
|
|
|
|
T(StrictCannotCreateProperty, "Cannot create property '%' on % '%'") \
|
2015-05-12 13:52:26 +00:00
|
|
|
T(StrongArity, \
|
|
|
|
"In strong mode, calling a function with too few arguments is deprecated") \
|
2015-06-01 11:39:01 +00:00
|
|
|
T(StrongDeleteProperty, \
|
2015-07-06 08:53:41 +00:00
|
|
|
"Deleting property '%' of strong object '%' is deprecated") \
|
2015-07-13 12:40:22 +00:00
|
|
|
T(StrongExtendNull, "In strong mode, classes extending null are deprecated") \
|
2015-06-30 14:21:51 +00:00
|
|
|
T(StrongImplicitConversion, \
|
|
|
|
"In strong mode, implicit conversions are deprecated") \
|
2015-05-29 11:33:15 +00:00
|
|
|
T(StrongRedefineDisallowed, \
|
|
|
|
"On strong object %, redefining writable, non-configurable property '%' " \
|
|
|
|
"to be non-writable is deprecated") \
|
2015-06-01 22:43:50 +00:00
|
|
|
T(StrongSetProto, \
|
|
|
|
"On strong object %, redefining the internal prototype is deprecated") \
|
2016-02-04 14:12:37 +00:00
|
|
|
T(SymbolIteratorInvalid, \
|
|
|
|
"Result of the Symbol.iterator method is not an object") \
|
2015-05-15 13:32:32 +00:00
|
|
|
T(SymbolKeyFor, "% is not a symbol") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(SymbolToNumber, "Cannot convert a Symbol value to a number") \
|
|
|
|
T(SymbolToString, "Cannot convert a Symbol value to a string") \
|
2015-07-16 19:43:21 +00:00
|
|
|
T(SimdToNumber, "Cannot convert a SIMD value to a number") \
|
2016-02-04 14:12:37 +00:00
|
|
|
T(ThrowMethodMissing, "The iterator does not provide a 'throw' method.") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(UndefinedOrNullToObject, "Cannot convert undefined or null to object") \
|
|
|
|
T(ValueAndAccessor, \
|
2015-10-14 19:22:17 +00:00
|
|
|
"Invalid property descriptor. Cannot both specify accessors and a value " \
|
|
|
|
"or writable attribute, %") \
|
2015-05-12 13:52:26 +00:00
|
|
|
T(VarRedeclaration, "Identifier '%' has already been declared") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(WrongArgs, "%: Arguments list has wrong type") \
|
2015-05-07 10:00:21 +00:00
|
|
|
/* ReferenceError */ \
|
|
|
|
T(NonMethod, "'super' is referenced from non-method") \
|
|
|
|
T(NotDefined, "% is not defined") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(StrongSuperCallMissing, \
|
|
|
|
"In strong mode, invoking the super constructor in a subclass is " \
|
|
|
|
"required") \
|
|
|
|
T(StrongUnboundGlobal, \
|
|
|
|
"In strong mode, using an undeclared global variable '%' is not allowed") \
|
2015-05-07 10:00:21 +00:00
|
|
|
T(UnsupportedSuper, "Unsupported reference to 'super'") \
|
2015-04-21 09:03:24 +00:00
|
|
|
/* RangeError */ \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(DateRange, "Provided date is not in valid range.") \
|
2016-01-04 21:47:44 +00:00
|
|
|
T(ExpectedTimezoneID, \
|
|
|
|
"Expected Area/Location(/Location)* for time zone, got %") \
|
|
|
|
T(ExpectedLocation, \
|
|
|
|
"Expected letters optionally connected with underscores or hyphens for " \
|
|
|
|
"a location, got %") \
|
2015-05-06 07:51:56 +00:00
|
|
|
T(InvalidArrayBufferLength, "Invalid array buffer length") \
|
2015-10-09 20:44:29 +00:00
|
|
|
T(ArrayBufferAllocationFailed, "Array buffer allocation failed") \
|
2015-05-06 07:51:56 +00:00
|
|
|
T(InvalidArrayLength, "Invalid array length") \
|
2015-04-30 16:22:00 +00:00
|
|
|
T(InvalidCodePoint, "Invalid code point %") \
|
|
|
|
T(InvalidCountValue, "Invalid count value") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(InvalidCurrencyCode, "Invalid currency code: %") \
|
2015-05-06 07:51:56 +00:00
|
|
|
T(InvalidDataViewAccessorOffset, \
|
|
|
|
"Offset is outside the bounds of the DataView") \
|
|
|
|
T(InvalidDataViewLength, "Invalid data view length") \
|
|
|
|
T(InvalidDataViewOffset, "Start offset is outside the bounds of the buffer") \
|
2015-08-28 09:21:23 +00:00
|
|
|
T(InvalidHint, "Invalid hint: %") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(InvalidLanguageTag, "Invalid language tag: %") \
|
2015-05-15 13:32:32 +00:00
|
|
|
T(InvalidWeakMapKey, "Invalid value used as weak map key") \
|
|
|
|
T(InvalidWeakSetValue, "Invalid value used in weak set") \
|
2015-05-06 07:51:56 +00:00
|
|
|
T(InvalidStringLength, "Invalid string length") \
|
2015-04-30 16:22:00 +00:00
|
|
|
T(InvalidTimeValue, "Invalid time value") \
|
2015-05-06 07:51:56 +00:00
|
|
|
T(InvalidTypedArrayAlignment, "% of % should be a multiple of %") \
|
|
|
|
T(InvalidTypedArrayLength, "Invalid typed array length") \
|
|
|
|
T(InvalidTypedArrayOffset, "Start offset is too large:") \
|
2015-10-05 20:28:45 +00:00
|
|
|
T(LetInLexicalBinding, "let is disallowed as a lexically bound name") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(LocaleMatcher, "Illegal value for localeMatcher:%") \
|
|
|
|
T(NormalizationForm, "The normalization form should be one of %.") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(NumberFormatRange, "% argument must be between 0 and 20") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(PropertyValueOutOfRange, "% value is out of range.") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(StackOverflow, "Maximum call stack size exceeded") \
|
|
|
|
T(ToPrecisionFormatRange, "toPrecision() argument must be between 1 and 21") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(ToRadixFormatRange, "toString() radix argument must be between 2 and 36") \
|
2015-05-06 07:51:56 +00:00
|
|
|
T(TypedArraySetNegativeOffset, "Start offset is negative") \
|
|
|
|
T(TypedArraySetSourceTooLarge, "Source is too large") \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(UnsupportedTimeZone, "Unsupported time zone specified %") \
|
|
|
|
T(ValueOutOfRange, "Value % out of range for % options property %") \
|
2015-04-21 09:03:24 +00:00
|
|
|
/* SyntaxError */ \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(BadGetterArity, "Getter must not have any formal parameters.") \
|
|
|
|
T(BadSetterArity, "Setter must have exactly one formal parameter.") \
|
|
|
|
T(ConstructorIsAccessor, "Class constructor may not be an accessor") \
|
|
|
|
T(ConstructorIsGenerator, "Class constructor may not be a generator") \
|
|
|
|
T(DerivedConstructorReturn, \
|
|
|
|
"Derived constructors may only return object or undefined") \
|
|
|
|
T(DuplicateConstructor, "A class may only have one constructor") \
|
|
|
|
T(DuplicateExport, "Duplicate export of '%'") \
|
|
|
|
T(DuplicateProto, \
|
|
|
|
"Duplicate __proto__ fields are not allowed in object literals") \
|
2016-02-04 18:39:05 +00:00
|
|
|
T(ForInOfLoopInitializer, \
|
|
|
|
"% loop variable declaration may not have an initializer.") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(ForInOfLoopMultiBindings, \
|
|
|
|
"Invalid left-hand side in % loop: Must have a single binding.") \
|
|
|
|
T(IllegalAccess, "Illegal access") \
|
|
|
|
T(IllegalBreak, "Illegal break statement") \
|
|
|
|
T(IllegalContinue, "Illegal continue statement") \
|
2015-08-26 14:59:05 +00:00
|
|
|
T(IllegalLanguageModeDirective, \
|
|
|
|
"Illegal '%' directive in function with non-simple parameter list") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(IllegalReturn, "Illegal return statement") \
|
2015-11-17 15:59:45 +00:00
|
|
|
T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \
|
2016-02-16 23:37:59 +00:00
|
|
|
T(InvalidEscapedMetaProperty, "'%' must not contain escaped characters") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \
|
2015-12-04 17:20:10 +00:00
|
|
|
T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \
|
|
|
|
T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \
|
|
|
|
T(InvalidLhsInPostfixOp, \
|
|
|
|
"Invalid left-hand side expression in postfix operation") \
|
|
|
|
T(InvalidLhsInPrefixOp, \
|
|
|
|
"Invalid left-hand side expression in prefix operation") \
|
2015-05-15 13:32:32 +00:00
|
|
|
T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \
|
2016-02-10 11:28:13 +00:00
|
|
|
T(JsonParseUnexpectedEOS, "Unexpected end of JSON input") \
|
|
|
|
T(JsonParseUnexpectedToken, "Unexpected token % in JSON at position %") \
|
|
|
|
T(JsonParseUnexpectedTokenNumber, "Unexpected number in JSON at position %") \
|
|
|
|
T(JsonParseUnexpectedTokenString, "Unexpected string in JSON at position %") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(LabelRedeclaration, "Label '%' has already been declared") \
|
|
|
|
T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \
|
2015-05-15 13:32:32 +00:00
|
|
|
T(MalformedRegExp, "Invalid regular expression: /%/: %") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(MalformedRegExpFlags, "Invalid regular expression flags") \
|
|
|
|
T(ModuleExportUndefined, "Export '%' is not defined in module") \
|
|
|
|
T(MultipleDefaultsInSwitch, \
|
|
|
|
"More than one default clause in switch statement") \
|
|
|
|
T(NewlineAfterThrow, "Illegal newline after throw") \
|
|
|
|
T(NoCatchOrFinally, "Missing catch or finally after try") \
|
|
|
|
T(NotIsvar, "builtin %%IS_VAR: not a variable") \
|
|
|
|
T(ParamAfterRest, "Rest parameter must be last formal parameter") \
|
2016-02-02 00:30:43 +00:00
|
|
|
T(InvalidRestParameter, \
|
|
|
|
"Rest parameter must be an identifier or destructuring pattern") \
|
2015-10-27 16:30:25 +00:00
|
|
|
T(PushPastSafeLength, \
|
|
|
|
"Pushing % elements on an array-like of length % " \
|
|
|
|
"is disallowed, as the total surpasses 2**53-1") \
|
2015-12-04 17:20:10 +00:00
|
|
|
T(ElementAfterRest, "Rest element must be last element in array") \
|
2015-05-18 15:52:57 +00:00
|
|
|
T(BadSetterRestParameter, \
|
|
|
|
"Setter function argument must not be a rest parameter") \
|
2015-07-14 21:58:49 +00:00
|
|
|
T(ParamDupe, "Duplicate parameter name not allowed in this context") \
|
2015-04-21 09:03:24 +00:00
|
|
|
T(ParenthesisInArgString, "Function arg string contains parenthesis") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(SingleFunctionLiteral, "Single function literal required") \
|
|
|
|
T(SloppyLexical, \
|
|
|
|
"Block-scoped declarations (let, const, function, class) not yet " \
|
|
|
|
"supported outside strict mode") \
|
2016-01-07 02:29:50 +00:00
|
|
|
T(SpeciesNotConstructor, \
|
|
|
|
"object.constructor[Symbol.species] is not a constructor") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \
|
|
|
|
T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \
|
|
|
|
T(StrictFunction, \
|
|
|
|
"In strict mode code, functions can only be declared at top level or " \
|
|
|
|
"immediately within another function.") \
|
|
|
|
T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \
|
|
|
|
T(StrictWith, "Strict mode code may not include a with statement") \
|
|
|
|
T(StrongArguments, \
|
|
|
|
"In strong mode, 'arguments' is deprecated, use '...args' instead") \
|
2015-09-01 18:29:23 +00:00
|
|
|
T(StrongConstructorDirective, \
|
|
|
|
"\"use strong\" directive is disallowed in class constructor body") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(StrongConstructorReturnMisplaced, \
|
|
|
|
"In strong mode, returning from a constructor before its super " \
|
|
|
|
"constructor invocation or all assignments to 'this' is deprecated") \
|
|
|
|
T(StrongConstructorReturnValue, \
|
|
|
|
"In strong mode, returning a value from a constructor is deprecated") \
|
|
|
|
T(StrongConstructorSuper, \
|
|
|
|
"In strong mode, 'super' can only be used to invoke the super " \
|
|
|
|
"constructor, and cannot be nested inside another statement or " \
|
|
|
|
"expression") \
|
|
|
|
T(StrongConstructorThis, \
|
|
|
|
"In strong mode, 'this' can only be used to initialize properties, and " \
|
|
|
|
"cannot be nested inside another statement or expression") \
|
|
|
|
T(StrongDelete, \
|
|
|
|
"In strong mode, 'delete' is deprecated, use maps or sets instead") \
|
|
|
|
T(StrongDirectEval, "In strong mode, direct calls to eval are deprecated") \
|
|
|
|
T(StrongEllision, \
|
|
|
|
"In strong mode, arrays with holes are deprecated, use maps instead") \
|
|
|
|
T(StrongEmpty, \
|
|
|
|
"In strong mode, empty sub-statements are deprecated, make them explicit " \
|
|
|
|
"with '{}' instead") \
|
|
|
|
T(StrongEqual, \
|
|
|
|
"In strong mode, '==' and '!=' are deprecated, use '===' and '!==' " \
|
|
|
|
"instead") \
|
|
|
|
T(StrongForIn, \
|
|
|
|
"In strong mode, 'for'-'in' loops are deprecated, use 'for'-'of' instead") \
|
2015-06-30 15:24:27 +00:00
|
|
|
T(StrongPropertyAccess, \
|
|
|
|
"In strong mode, accessing missing property '%' of % is deprecated") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(StrongSuperCallDuplicate, \
|
|
|
|
"In strong mode, invoking the super constructor multiple times is " \
|
|
|
|
"deprecated") \
|
|
|
|
T(StrongSuperCallMisplaced, \
|
|
|
|
"In strong mode, the super constructor must be invoked before any " \
|
|
|
|
"assignment to 'this'") \
|
|
|
|
T(StrongSwitchFallthrough, \
|
|
|
|
"In strong mode, switch fall-through is deprecated, terminate each case " \
|
|
|
|
"with 'break', 'continue', 'return' or 'throw'") \
|
|
|
|
T(StrongUndefined, \
|
|
|
|
"In strong mode, binding or assigning to 'undefined' is deprecated") \
|
|
|
|
T(StrongUseBeforeDeclaration, \
|
|
|
|
"In strong mode, declaring variable '%' before its use is required") \
|
|
|
|
T(StrongVar, \
|
|
|
|
"In strong mode, 'var' is deprecated, use 'let' or 'const' instead") \
|
|
|
|
T(TemplateOctalLiteral, \
|
|
|
|
"Octal literals are not allowed in template strings.") \
|
|
|
|
T(ThisFormalParameter, "'this' is not a valid formal parameter name") \
|
|
|
|
T(TooManyArguments, \
|
|
|
|
"Too many arguments in function call (only 65535 allowed)") \
|
|
|
|
T(TooManyParameters, \
|
|
|
|
"Too many parameters in function definition (only 65535 allowed)") \
|
|
|
|
T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \
|
2016-01-12 06:07:48 +00:00
|
|
|
T(TypedArrayTooShort, \
|
|
|
|
"Derived TypedArray constructor created an array which was too small") \
|
2015-05-15 13:32:32 +00:00
|
|
|
T(UnexpectedEOS, "Unexpected end of input") \
|
2016-01-28 08:54:29 +00:00
|
|
|
T(UnexpectedFunctionSent, \
|
|
|
|
"function.sent expression is not allowed outside a generator") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(UnexpectedReserved, "Unexpected reserved word") \
|
|
|
|
T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \
|
|
|
|
T(UnexpectedSuper, "'super' keyword unexpected here") \
|
2015-06-09 15:43:07 +00:00
|
|
|
T(UnexpectedNewTarget, "new.target expression is not allowed here") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(UnexpectedTemplateString, "Unexpected template string") \
|
2015-05-15 13:32:32 +00:00
|
|
|
T(UnexpectedToken, "Unexpected token %") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(UnexpectedTokenIdentifier, "Unexpected identifier") \
|
2015-05-15 13:32:32 +00:00
|
|
|
T(UnexpectedTokenNumber, "Unexpected number") \
|
|
|
|
T(UnexpectedTokenString, "Unexpected string") \
|
2015-07-14 21:57:40 +00:00
|
|
|
T(UnexpectedTokenRegExp, "Unexpected regular expression") \
|
2015-05-18 08:34:05 +00:00
|
|
|
T(UnknownLabel, "Undefined label '%'") \
|
|
|
|
T(UnterminatedArgList, "missing ) after argument list") \
|
|
|
|
T(UnterminatedRegExp, "Invalid regular expression: missing /") \
|
|
|
|
T(UnterminatedTemplate, "Unterminated template literal") \
|
|
|
|
T(UnterminatedTemplateExpr, "Missing } in template expression") \
|
2015-04-21 09:03:24 +00:00
|
|
|
/* EvalError */ \
|
2015-04-24 10:22:00 +00:00
|
|
|
T(CodeGenFromStrings, "%") \
|
|
|
|
/* URIError */ \
|
|
|
|
T(URIMalformed, "URI malformed")
|
2015-04-16 07:01:20 +00:00
|
|
|
|
|
|
|
class MessageTemplate {
|
|
|
|
public:
|
|
|
|
enum Template {
|
|
|
|
#define TEMPLATE(NAME, STRING) k##NAME,
|
|
|
|
MESSAGE_TEMPLATES(TEMPLATE)
|
|
|
|
#undef TEMPLATE
|
|
|
|
kLastMessage
|
|
|
|
};
|
|
|
|
|
2015-08-17 11:02:31 +00:00
|
|
|
static const char* TemplateString(int template_index);
|
|
|
|
|
2015-04-16 07:01:20 +00:00
|
|
|
static MaybeHandle<String> FormatMessage(int template_index,
|
|
|
|
Handle<String> arg0,
|
|
|
|
Handle<String> arg1,
|
|
|
|
Handle<String> arg2);
|
2015-05-18 08:34:05 +00:00
|
|
|
|
|
|
|
static Handle<String> FormatMessage(Isolate* isolate, int template_index,
|
|
|
|
Handle<Object> arg);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// A message handler is a convenience interface for accessing the list
|
|
|
|
// of message listeners registered in an environment
|
|
|
|
class MessageHandler {
|
|
|
|
public:
|
|
|
|
// Returns a message object for the API to use.
|
|
|
|
static Handle<JSMessageObject> MakeMessageObject(
|
2015-08-21 13:18:54 +00:00
|
|
|
Isolate* isolate, MessageTemplate::Template type,
|
|
|
|
MessageLocation* location, Handle<Object> argument,
|
|
|
|
Handle<JSArray> stack_frames);
|
2015-05-18 08:34:05 +00:00
|
|
|
|
|
|
|
// Report a formatted message (needs JS allocation).
|
|
|
|
static void ReportMessage(Isolate* isolate, MessageLocation* loc,
|
2015-05-28 06:30:08 +00:00
|
|
|
Handle<JSMessageObject> message);
|
2015-05-18 08:34:05 +00:00
|
|
|
|
|
|
|
static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc,
|
|
|
|
Handle<Object> message_obj);
|
|
|
|
static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
|
2015-07-13 12:38:06 +00:00
|
|
|
static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
|
|
|
|
Handle<Object> data);
|
2015-04-16 07:01:20 +00:00
|
|
|
};
|
2015-08-11 09:15:27 +00:00
|
|
|
|
|
|
|
|
2015-09-30 13:46:56 +00:00
|
|
|
} // namespace internal
|
|
|
|
} // namespace v8
|
2008-07-03 15:10:15 +00:00
|
|
|
|
|
|
|
#endif // V8_MESSAGES_H_
|