Skip to content

Commit a007f0d

Browse files
authored
Add missing .value in example (#26)
Use `.value` to get the value of the exported global.
1 parent e054039 commit a007f0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/custom-descriptors/Overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ var {module, instance} = await WebAssembly.instantiateStreaming(fetch('counter.w
530530
counterProto.get = function() { return instance.exports['counter.get'](this); };
531531
counterProto.inc = function() { instance.exports['counter.inc'](this); };
532532

533-
var counter = instance.exports['counter'];
533+
var counter = instance.exports['counter'].value;
534534

535535
console.log(counter.get()); // 0
536536
counter.inc();

0 commit comments

Comments
 (0)