Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1283)

Unified Diff: include/v8.h

Issue 1889903003: [api] Expose ES6 7.3.14 SetIntegrityLevel on v8::Object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 7952fc9bd1e1b9b9cb5d85c920dee149582ff4ad..9643acc005b21f66c5aa52e531e1078b9a78f3d8 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -2639,6 +2639,10 @@ enum AccessControl {
PROHIBITS_OVERWRITING = 1 << 2
};
+/**
+ * Integrity level for objects.
+ */
+enum class IntegrityLevel { kFrozen, kSealed };
/**
* A JavaScript object (ECMA-262, 4.3.3)
@@ -2830,6 +2834,11 @@ class V8_EXPORT Object : public Value {
*/
Local<String> GetConstructorName();
+ /**
+ * Sets the integrity level of the object.
+ */
+ Maybe<bool> SetIntegrityLevel(Local<Context> context, IntegrityLevel level);
+
/** Gets the number of internal fields for this Object. */
int InternalFieldCount();
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698