toPrimitiveCrossScriptTestCaseHelper.js 444 B

12345678910
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. var a = {};
  6. a[Symbol.toPrimitive] = function()
  7. {
  8. return 1;
  9. }