Skip to content
Permalink
Browse files

SandBox, bugfix: do not check result from SetIntegrityLevel.

  • Loading branch information...
xicilion committed Aug 19, 2018
1 parent b2bc253 commit ec9b7e67c1368a9b5cfa845c27d44192c38bd07e
Showing with 1 addition and 1 deletion.
  1. +1 −1 fibjs/src/sandbox/SandBox.cpp
@@ -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();

0 comments on commit ec9b7e6

Please sign in to comment.
You can’t perform that action at this time.