diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-01-31 16:33:43 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-02-06 16:33:22 +0000 |
commit | da51f56cc21233c2d30f0fe0d171727c3102b2e0 (patch) | |
tree | 4e579ab70ce4b19bee7984237f3ce05a96d59d83 /chromium/v8/src/js/v8natives.js | |
parent | c8c2d1901aec01e934adf561a9fdf0cc776cdef8 (diff) | |
download | qtwebengine-chromium-da51f56cc21233c2d30f0fe0d171727c3102b2e0.tar.gz |
BASELINE: Update Chromium to 65.0.3525.40
Also imports missing submodules
Change-Id: I36901b7c6a325cda3d2c10cedb2186c25af3b79b
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/v8/src/js/v8natives.js')
-rw-r--r-- | chromium/v8/src/js/v8natives.js | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/chromium/v8/src/js/v8natives.js b/chromium/v8/src/js/v8natives.js deleted file mode 100644 index 26dada3759b..00000000000 --- a/chromium/v8/src/js/v8natives.js +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2012 the V8 project authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -(function(global, utils) { - -"use strict"; - -%CheckIsBootstrapping(); - -// ---------------------------------------------------------------------------- -// Imports - -var GlobalObject = global.Object; -var iteratorSymbol = utils.ImportNow("iterator_symbol"); - -// ---------------------------------------------------------------------------- -// Object - -// Set up non-enumerable functions on the Object.prototype object. -DEFINE_METHOD( - GlobalObject.prototype, - // ES6 19.1.3.5 Object.prototype.toLocaleString([reserved1 [,reserved2]]) - toLocaleString() { - REQUIRE_OBJECT_COERCIBLE(this, "Object.prototype.toLocaleString"); - return this.toString(); - } -); - -// ES6 7.3.9 -function GetMethod(obj, p) { - var func = obj[p]; - if (IS_NULL_OR_UNDEFINED(func)) return UNDEFINED; - if (IS_CALLABLE(func)) return func; - throw %make_type_error(kCalledNonCallable, typeof func); -} - -// ---------------------------------------------------------------------------- -// Iterator related spec functions. - -// ES6 7.4.1 GetIterator(obj, method) -function GetIterator(obj, method) { - if (IS_UNDEFINED(method)) { - method = obj[iteratorSymbol]; - } - if (!IS_CALLABLE(method)) { - throw %make_type_error(kNotIterable, obj); - } - var iterator = %_Call(method, obj); - if (!IS_RECEIVER(iterator)) { - throw %make_type_error(kNotAnIterator, iterator); - } - return iterator; -} - -// ---------------------------------------------------------------------------- -// Exports - -utils.Export(function(to) { - to.GetIterator = GetIterator; - to.GetMethod = GetMethod; -}); - -}) |