Skip to content

Commit

Permalink
SandBox, bugfix: do not check result from SetIntegrityLevel.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Aug 19, 2018
1 parent b2bc253 commit ec9b7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fibjs/src/sandbox/SandBox.cpp
Expand Up @@ -195,7 +195,7 @@ result_t deepFreeze(v8::Local<v8::Value> v)
v8::Local<v8::Object> obj = v8::Local<v8::Object>::Cast(v);

if (!isFrozen(obj)) {
obj->SetIntegrityLevel(obj->CreationContext(), v8::IntegrityLevel::kFrozen).ToChecked();
obj->SetIntegrityLevel(obj->CreationContext(), v8::IntegrityLevel::kFrozen);
v8::Local<v8::Array> names = obj->GetPropertyNames(obj->CreationContext(), v8::KeyCollectionMode::kIncludePrototypes,
v8::ALL_PROPERTIES, v8::IndexFilter::kIncludeIndices)
.ToLocalChecked();
Expand Down

0 comments on commit ec9b7e6

Please sign in to comment.