aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/jsimport/importPragmaLibraryWithPragmaLibraryImports.js
blob: fa6497d99be3d11fd49bd3984a24450dc8ee5bcf (plain)
1
2
3
4
5
6
7
8
9
10
11
.pragma library
.import "importPragmaLibrary.js" as LibraryImport

var i = 10;

function importIncrementedValue() {
    i = i + 1;
    // because LibraryImport is shared, and used in previous tests,
    // the value will be large (already incremented a bunch of times).
    return (i + LibraryImport.importIncrementedValue());
}