BUG=v8:3956
LOG=N
Review URL: https://codereview.chromium.org/
1270423003
Cr-Commit-Position: refs/heads/master@{#30032}
Handle<Map> map =
isolate->factory()->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize);
+ if (constructor->map()->is_strong()) {
+ map->set_is_strong();
+ }
Map::SetPrototype(map, prototype_parent);
map->SetConstructor(*constructor);
Handle<JSObject> prototype = isolate->factory()->NewJSObjectFromMap(map);
'use strong';
function assertStrongClass(x) {
assertTrue(%IsStrong(x));
- // TODO(rossberg): strongify class prototype and instance
- // assertTrue(%IsStrong(x.prototype));
+ assertTrue(%IsStrong(x.prototype));
+ // TODO(rossberg): strongify class instance
// assertTrue(%IsStrong(new x));
}
class C {};