summaryrefslogtreecommitdiff
path: root/deps/v8/src/messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/messages.h')
-rw-r--r--deps/v8/src/messages.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/deps/v8/src/messages.h b/deps/v8/src/messages.h
index 1a1a5b29ff..187bd4d308 100644
--- a/deps/v8/src/messages.h
+++ b/deps/v8/src/messages.h
@@ -13,7 +13,6 @@
#include <memory>
#include "src/handles.h"
-#include "src/wasm/wasm-code-wrapper.h"
namespace v8 {
namespace internal {
@@ -153,7 +152,7 @@ class WasmStackFrame : public StackFrameBase {
bool IsToplevel() override { return false; }
bool IsConstructor() override { return false; }
bool IsStrict() const override { return false; }
- bool IsInterpreted() const { return code_.is_null(); }
+ bool IsInterpreted() const { return code_ == nullptr; }
MaybeHandle<String> ToString() override;
@@ -165,7 +164,7 @@ class WasmStackFrame : public StackFrameBase {
Handle<WasmInstanceObject> wasm_instance_;
uint32_t wasm_func_index_;
- WasmCodeWrapper code_; // null for interpreted frames.
+ wasm::WasmCode* code_; // null for interpreted frames.
int offset_;
private:
@@ -344,6 +343,7 @@ class ErrorUtils : public AllStatic {
T(IteratorSymbolNonCallable, "Found non-callable @@iterator") \
T(IteratorValueNotAnObject, "Iterator value % is not an entry object") \
T(LanguageID, "Language ID should be string or object.") \
+ T(MapperFunctionNonCallable, "flatMap mapper function is not callable") \
T(MethodCalledOnWrongObject, \
"Method % called on a non-object or on a wrong type of object.") \
T(MethodInvokedOnNullOrUndefined, \
@@ -556,7 +556,13 @@ class ErrorUtils : public AllStatic {
T(LetInLexicalBinding, "let is disallowed as a lexically bound name") \
T(LocaleMatcher, "Illegal value for localeMatcher:%") \
T(NormalizationForm, "The normalization form should be one of %.") \
+ T(ZeroDigitNumericSeparator, \
+ "Numeric separator can not be used after leading 0.") \
T(NumberFormatRange, "% argument must be between 0 and 100") \
+ T(TrailingNumericSeparator, \
+ "Numeric separators are not allowed at the end of numeric literals") \
+ T(ContinuousNumericSeparator, \
+ "Only one underscore is allowed as numeric separator") \
T(PropertyValueOutOfRange, "% value is out of range.") \
T(StackOverflow, "Maximum call stack size exceeded") \
T(ToPrecisionFormatRange, \
@@ -638,6 +644,9 @@ class ErrorUtils : public AllStatic {
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") \
+ T(FlattenPastSafeLength, \
+ "Flattening % elements on an array-like of length % " \
+ "is disallowed, as the total surpasses 2**53-1") \
T(PushPastSafeLength, \
"Pushing % elements on an array-like of length % " \
"is disallowed, as the total surpasses 2**53-1") \
@@ -686,6 +695,7 @@ class ErrorUtils : public AllStatic {
T(TooManySpreads, \
"Literal containing too many nested spreads (up to 65534 allowed)") \
T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \
+ T(TooManyElementsInPromiseAll, "Too many elements passed to Promise.all") \
T(TypedArrayTooShort, \
"Derived TypedArray constructor created an array which was too small") \
T(UnexpectedEOS, "Unexpected end of input") \