11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ci// Flags: --expose-internals 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_cirequire('../common'); 51cb0ef41Sopenharmony_ciconst assert = require('assert'); 61cb0ef41Sopenharmony_ciconst fixtures = require('../common/fixtures'); 71cb0ef41Sopenharmony_ciconst { internalBinding } = require('internal/test/binding'); 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ciconst { 101cb0ef41Sopenharmony_ci privateSymbols: { 111cb0ef41Sopenharmony_ci arrow_message_private_symbol, 121cb0ef41Sopenharmony_ci }, 131cb0ef41Sopenharmony_ci} = internalBinding('util'); 141cb0ef41Sopenharmony_ci 151cb0ef41Sopenharmony_ciconst obj = {}; 161cb0ef41Sopenharmony_ciassert.strictEqual(obj[arrow_message_private_symbol], undefined); 171cb0ef41Sopenharmony_ci 181cb0ef41Sopenharmony_ciobj[arrow_message_private_symbol] = 'bar'; 191cb0ef41Sopenharmony_ciassert.strictEqual(obj[arrow_message_private_symbol], 'bar'); 201cb0ef41Sopenharmony_ciassert.deepStrictEqual(Reflect.ownKeys(obj), []); 211cb0ef41Sopenharmony_ci 221cb0ef41Sopenharmony_cilet arrowMessage; 231cb0ef41Sopenharmony_ci 241cb0ef41Sopenharmony_citry { 251cb0ef41Sopenharmony_ci require(fixtures.path('syntax', 'bad_syntax')); 261cb0ef41Sopenharmony_ci} catch (err) { 271cb0ef41Sopenharmony_ci arrowMessage = err[arrow_message_private_symbol]; 281cb0ef41Sopenharmony_ci} 291cb0ef41Sopenharmony_ci 301cb0ef41Sopenharmony_ciassert.match(arrowMessage, /bad_syntax\.js:1/); 31