harmony-reflect.js 504 Bytes
Newer Older
1 2 3 4
// Copyright 2013 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.

5
(function(global, utils) {
6

7 8
'use strict';

9
%CheckIsBootstrapping();
10

11
var GlobalReflect = global.Reflect;
12 13
var ReflectApply = utils.ImportNow("reflect_apply");
var ReflectConstruct = utils.ImportNow("reflect_construct");
14

15
utils.InstallFunctions(GlobalReflect, DONT_ENUM, [
16 17
  "apply", ReflectApply,
  "construct", ReflectConstruct
18
]);
19

20
})