blob: ef5ef9a2bb845cdfa3645597aae805ede1411b1a [file] [log] [blame]
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 26.1.2
description: >
Return target result
info: |
26.1.2 Reflect.construct ( target, argumentsList [, newTarget] )
...
2. If newTarget is not present, let newTarget be target.
...
6. Return Construct(target, args, newTarget).
---*/
var o = {};
function fn() {
this.o = o;
}
var result = Reflect.construct(fn, []);
assert.sameValue(result.o, o);
assert(result instanceof fn);