summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2018-06-19 16:21:31 -0500
committerGus Caplan <me@gus.host>2018-06-21 16:23:38 -0500
commit84f3769ab1a0d3013b391f87b77f3106f991dbfc (patch)
treef66e4d465ccd7bc2a74a56eb59b33758f70677db /test
parent40b1f08a0f559a11434347368f802061f80181c0 (diff)
downloadandroid-node-v8-84f3769ab1a0d3013b391f87b77f3106f991dbfc.tar.gz
android-node-v8-84f3769ab1a0d3013b391f87b77f3106f991dbfc.tar.bz2
android-node-v8-84f3769ab1a0d3013b391f87b77f3106f991dbfc.zip
atomis: add notify alias
PR-URL: https://github.com/nodejs/node/pull/21413 Refs: https://github.com/nodejs/node/issues/21219 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-atomics-notify.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/parallel/test-atomics-notify.js b/test/parallel/test-atomics-notify.js
new file mode 100644
index 0000000000..dcca7a9fd1
--- /dev/null
+++ b/test/parallel/test-atomics-notify.js
@@ -0,0 +1,10 @@
+'use strict';
+
+require('../common');
+
+const assert = require('assert');
+const { runInNewContext } = require('vm');
+
+assert.strictEqual(Atomics.wake, Atomics.notify);
+
+assert(runInNewContext('Atomics.wake === Atomics.notify'));