Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/builtins/array-isarray.tq')
-rw-r--r--deps/v8/src/builtins/array-isarray.tq32
1 files changed, 16 insertions, 16 deletions
diff --git a/deps/v8/src/builtins/array-isarray.tq b/deps/v8/src/builtins/array-isarray.tq
index 48fca60339d..a88c1579d1a 100644
--- a/deps/v8/src/builtins/array-isarray.tq
+++ b/deps/v8/src/builtins/array-isarray.tq
@@ -3,25 +3,25 @@
// found in the LICENSE file.
namespace runtime {
- extern runtime ArrayIsArray(implicit context: Context)(JSAny): JSAny;
+extern runtime ArrayIsArray(implicit context: Context)(JSAny): JSAny;
} // namespace runtime
namespace array {
- // ES #sec-array.isarray
- javascript builtin ArrayIsArray(js-implicit context:
- NativeContext)(arg: JSAny): JSAny {
- // 1. Return ? IsArray(arg).
- typeswitch (arg) {
- case (JSArray): {
- return True;
- }
- case (JSProxy): {
- // TODO(verwaest): Handle proxies in-place
- return runtime::ArrayIsArray(arg);
- }
- case (JSAny): {
- return False;
- }
+// ES #sec-array.isarray
+javascript builtin ArrayIsArray(js-implicit context: NativeContext)(arg: JSAny):
+ JSAny {
+ // 1. Return ? IsArray(arg).
+ typeswitch (arg) {
+ case (JSArray): {
+ return True;
+ }
+ case (JSProxy): {
+ // TODO(verwaest): Handle proxies in-place
+ return runtime::ArrayIsArray(arg);
+ }
+ case (JSAny): {
+ return False;
}
}
+}
} // namespace array