| Index: test/cctest/test-alloc.cc
|
| diff --git a/test/cctest/test-alloc.cc b/test/cctest/test-alloc.cc
|
| index 1a9b99d553fbf902cbd09b2acdcd1b1ea97d9c3f..00ff86621e4e0f0d715719bd9b944aa6743eb997 100644
|
| --- a/test/cctest/test-alloc.cc
|
| +++ b/test/cctest/test-alloc.cc
|
| @@ -134,7 +134,7 @@ TEST(StressJS) {
|
| // Force the creation of an initial map and set the code to
|
| // something empty.
|
| FACTORY->NewJSObject(function);
|
| - function->set_code(Isolate::Current()->builtins()->builtin(
|
| + function->ReplaceCode(Isolate::Current()->builtins()->builtin(
|
| Builtins::EmptyFunction));
|
| // Patch the map to have an accessor for "get".
|
| Handle<Map> map(function->initial_map());
|
|
|