Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Update Overview.md for recent changes
Browse files Browse the repository at this point in the history
* Remove toStringTag
* Rename "type" to "value" in descriptor
  • Loading branch information
binji committed May 15, 2018
1 parent 2949038 commit 1e7a371
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions proposals/mutable-global/Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ this constructor cannot be called as a function without `new`).

If `Type(globalDescriptor)` is not Object, a [`TypeError`][] is thrown.

Let `typeName` be [`ToString`][]([`Get`][](`globalDescriptor`, `"type"`)).
Let `typeName` be [`ToString`][]([`Get`][](`globalDescriptor`, `"value"`)).

If `typeName` is not one of `"i32"`, `"f32"`, or `"f64"`, throw a [`TypeError`][].

Expand All @@ -398,12 +398,6 @@ Let `gt` be a new [`global_type`][] with `mut` `m` and type `t`.

Return a new `WebAssembly.Global` with \[\[Global\]\] set to `g` and \[\[GlobalType\]\] `gt`.

#### `WebAssembly.Global.prototype [ @@toStringTag ]` Property

The initial value of the [`@@toStringTag`][] property is the String value `"WebAssembly.Global"`.

This property has the attributes { [[Writable]]: `false`, [[Enumerable]]: `false`, [[Configurable]]: `true` }.

#### `WebAssembly.Global.prototype.valueOf()` Method

1. If \[\[GlobalType\]\].`valtype` is `i64`, throw a [`TypeError`][].
Expand Down

0 comments on commit 1e7a371

Please sign in to comment.