Sometimes, we are facing, there is a case of workerData is empty.
empty 'id' makes kind of smack error and JavaScript errors.
This issue has been reported from long aging test.
Change-Id: Ib287eecc3906e313dc5b23491aa04939b88543cf
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
function run() {
let id = workerData.id;
function run() {
let id = workerData.id;
+ if (!id) {
+ console.debug('workerData.id is empty!');
+ process.exit();
+ }
+
Object.defineProperty(global, 'internalId', {
value: id,
writable: false
Object.defineProperty(global, 'internalId', {
value: id,
writable: false