Skip to content

Commit

Permalink
wake to notify polyfill #2
Browse files Browse the repository at this point in the history
  • Loading branch information
VirtualTim authored Mar 21, 2019
1 parent 1c92b51 commit a818d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime_sab_polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if (typeof Atomics === 'undefined') {
Atomics['compareExchange'] = function(t, i, e, r) { var w = t[i]; if (w == e) t[i] = r; return w; }
Atomics['exchange'] = function(t, i, v) { var w = t[i]; t[i] = v; return w; }
Atomics['wait'] = function(t, i, v, o) { if (t[i] != v) return 'not-equal'; else return 'timed-out'; }
Atomics['wake'] = function(t, i, c) { return 0; }
Atomics['notify'] = function(t, i, c) { return 0; }
Atomics['wakeOrRequeue'] = function(t, i1, c, i2, v) { return 0; }
Atomics['isLockFree'] = function(s) { return true; }
Atomics['load'] = function(t, i) { return t[i]; }
Expand Down

0 comments on commit a818d78

Please sign in to comment.