{"size": 686, "ext": "js", "max_stars_repo_path": "seeds/test262/built-ins/Atomics/wake/count-symbol-throws.js", "max_stars_repo_name": "gustavopinto/entente", "max_stars_repo_stars_event_min_datetime": "2018-03-20T21:53:38.000Z", "max_stars_repo_stars_event_max_datetime": "2018-12-28T21:08:47.000Z", "max_issues_repo_path": "seeds/test262/built-ins/Atomics/wake/count-symbol-throws.js", "max_issues_repo_name": "gustavopinto/entente", "max_issues_repo_issues_event_min_datetime": "2018-04-09T20:16:00.000Z", "max_issues_repo_issues_event_max_datetime": "2019-06-11T12:31:10.000Z", "max_forks_repo_path": "seeds/test262/built-ins/Atomics/wake/count-symbol-throws.js", "max_forks_repo_name": "gustavopinto/entente", "max_forks_repo_forks_event_min_datetime": "2018-04-06T00:52:24.000Z", "max_forks_repo_forks_event_max_datetime": "2018-07-10T19:44:16.000Z"}
{"max_stars_count": 5, "max_issues_count": 14, "max_forks_count": 12, "avg_line_length": 25.4074074074, "max_line_length": 71, "alphanum_fraction": 0.6924198251}
// Copyright (C) 2018 Rick Waldron.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-atomics.wake
description: >
  Return abrupt when symbol passed for 'count' argument to Atomics.wake
info: |
  Atomics.wake( typedArray, index, count )

  ...
  3. If count is undefined, let c be +∞.
  4. Else,
    a. Let intCount be ? ToInteger(count).
  ...

features: [Atomics, SharedArrayBuffer, TypedArray]
---*/

const i32a = new Int32Array(
  new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT * 4)
);

assert.throws(TypeError, function() {
  Atomics.wake(i32a, 0, Symbol());
}, '`Atomics.wake(i32a, 0, Symbol())` throws TypeError');
