Debian Codegraph @

rhino/testsrc/doctests/canonicalize.doctest

raw
1 // This Source Code Form is subject to the terms of the Mozilla Public
2 // License, v. 2.0. If a copy of the MPL was not distributed with this
3 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5 js> var obj = new java.lang.Object();
6 js> obj
7 java.lang.Object@97a560
8 js> obj + "%%"
9 java.lang.Object@97a560%%
10 js> var obj = new java.lang.Object();
11 js> obj
12 java.lang.Object@1d15445
13 js> "foo" + obj + "bar"
14 foojava.lang.Object@1d15445bar
15 js> var obj2 = new java.lang.Object();
16 js> obj + obj2
17 [email protected]@1f3aa07