Commit eb9407c6 authored by neis's avatar neis Committed by Commit bot

[es6] Set correct length for Reflect.get (should be 2, not 3).

R=rossberg
BUG=

Review URL: https://codereview.chromium.org/1498983003

Cr-Commit-Position: refs/heads/master@{#32615}
parent 1e671030
......@@ -2044,7 +2044,7 @@ void Genesis::InitializeGlobal_harmony_reflect() {
SimpleInstallFunction(reflect, factory->deleteProperty_string(),
Builtins::kReflectDeleteProperty, 2, true);
SimpleInstallFunction(reflect, factory->get_string(),
Builtins::kReflectGet, 3, false);
Builtins::kReflectGet, 2, false);
SimpleInstallFunction(reflect, factory->getOwnPropertyDescriptor_string(),
Builtins::kReflectGetOwnPropertyDescriptor, 2, true);
SimpleInstallFunction(reflect, factory->getPrototypeOf_string(),
......
......@@ -71,7 +71,7 @@ function prepare(target) {
(function testReflectGetArity() {
assertEquals(3, Reflect.get.length);
assertEquals(2, Reflect.get.length);
})();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment