diff --git a/src/runtime/runtime-function.cc b/src/runtime/runtime-function.cc index e0be0698fe..b86d969dd9 100644 --- a/src/runtime/runtime-function.cc +++ b/src/runtime/runtime-function.cc @@ -407,6 +407,7 @@ RUNTIME_FUNCTION(Runtime_FunctionBindArguments) { // TODO(lrn): Create bound function in C++ code from premade shared info. bound_function->shared()->set_bound(true); + bound_function->shared()->set_inferred_name(isolate->heap()->empty_string()); // Get all arguments of calling function (Function.prototype.bind). int argc = 0; SmartArrayPointer > arguments = diff --git a/test/mjsunit/regress/regress-crbug-484077.js b/test/mjsunit/regress/regress-crbug-484077.js new file mode 100644 index 0000000000..26fa7a2d43 --- /dev/null +++ b/test/mjsunit/regress/regress-crbug-484077.js @@ -0,0 +1,7 @@ +// Copyright 2015 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. + +// Flags: --allow-natives-syntax + +assertEquals("", %FunctionGetInferredName((function(){}).bind({})));