From: Youngsoo Choi Date: Tue, 1 Oct 2019 06:47:49 +0000 (-0700) Subject: fixup! [Service][UI] Provide sandbox context for each ui servcie app X-Git-Tag: submit/tizen/20191002.060847^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4aa199db7a3e67f6ca4964aaecb1791168739afb;p=platform%2Fframework%2Fweb%2Fwrtjs.git fixup! [Service][UI] Provide sandbox context for each ui servcie app This prevents sharing module with launched service apps. Change-Id: Ibfe6524e74e9122e1fe2264627f943b6a0c6598e Signed-off-by: Youngsoo Choi --- diff --git a/wrt_app/src/runtime.js b/wrt_app/src/runtime.js index f39e244f..58d3a71d 100755 --- a/wrt_app/src/runtime.js +++ b/wrt_app/src/runtime.js @@ -184,9 +184,10 @@ class Runtime { if (type === 'startService') { if (_this.sandbox[app_id] === undefined) { const fs = require('fs'); + const Module = require('module'); _this.sandbox[app_id] = { console: console, - module: module, + module: new Module, require: require, }; let options = {};