diff options
author | Jake Petroules <jake.petroules@qt.io> | 2017-02-01 04:55:39 -0800 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2017-02-15 00:03:01 +0000 |
commit | 7ba540b35f894fbfcf93fcda9e56eeb321edb1fe (patch) | |
tree | 15709e8c48a0cd691dff86ff07d2f220670fea70 /tests/auto/blackbox/testdata/trackExternalProductChanges | |
parent | 58b4f1395f0a394cf040e1afe994ddb84fbfebeb (diff) |
Deprecate loadFile and loadExtension in favor of require
This is more in line with mainstream JavaScript (especially node.js)
which uses the CommonJS/RequireJS scheme for loading external modules.
[ChangeLog] The loadFile and loadExtension functions are deprecated in
favor of the new require function, which accepts arguments of either
form accepted by the deprecated functions.
Change-Id: Icc00aa3eb7c136a5be787f28ef38435e4ce261bb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata/trackExternalProductChanges')
-rw-r--r-- | tests/auto/blackbox/testdata/trackExternalProductChanges/fileList.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/blackbox/testdata/trackExternalProductChanges/fileList.js b/tests/auto/blackbox/testdata/trackExternalProductChanges/fileList.js index 301e4d27a..707de0334 100644 --- a/tests/auto/blackbox/testdata/trackExternalProductChanges/fileList.js +++ b/tests/auto/blackbox/testdata/trackExternalProductChanges/fileList.js @@ -1,4 +1,4 @@ -var File = loadExtension("qbs.File"); +var File = require("qbs.File"); function fileList() { return []; } |