11cb0ef41Sopenharmony_ci// Flags: --expose-internals 21cb0ef41Sopenharmony_ci'use strict'; 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_cirequire('../common'); 51cb0ef41Sopenharmony_ciconst assert = require('assert'); 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ciconst { 81cb0ef41Sopenharmony_ci MessageEvent, 91cb0ef41Sopenharmony_ci} = require('internal/worker/io'); 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_ci[ 121cb0ef41Sopenharmony_ci 'data', 131cb0ef41Sopenharmony_ci 'origin', 141cb0ef41Sopenharmony_ci 'lastEventId', 151cb0ef41Sopenharmony_ci 'source', 161cb0ef41Sopenharmony_ci 'ports', 171cb0ef41Sopenharmony_ci].forEach((i) => { 181cb0ef41Sopenharmony_ci assert.throws(() => Reflect.get(MessageEvent.prototype, i, {}), { 191cb0ef41Sopenharmony_ci code: 'ERR_INVALID_THIS', 201cb0ef41Sopenharmony_ci }); 211cb0ef41Sopenharmony_ci}); 22