feat(js-sandbox): add pw.env.unset method (#3677)

Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
This commit is contained in:
Muhammed Ajmal M
2024-01-23 22:31:27 +05:30
committed by GitHub
parent 9e1466a877
commit 4cba03e53f
8 changed files with 328 additions and 51 deletions

View File

@@ -8,7 +8,8 @@
"value": "?",
"writable": "bool",
"get": "fn() -> ?",
"set": "fn(value: ?)"
"set": "fn(value: ?)",
"unset": "fn(value: ?)"
},
"Promise.prototype": {
"catch": {

View File

@@ -3,6 +3,7 @@
"pw": {
"env": {
"set": "fn(key: string, value: string)",
"unset": "fn(key: string)",
"get": "fn(key: string) -> string",
"getResolve": "fn(key: string) -> string",
"resolve": "fn(value: string) -> string"

View File

@@ -22,6 +22,7 @@
},
"env": {
"set": "fn(key: string, value: string)",
"unset": "fn(key: string)",
"get": "fn(key: string) -> string",
"getResolve": "fn(key: string) -> string",
"resolve": "fn(value: string) -> string"