mORMot and Open Source friends
Check-in [a30165310f]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:{2967} fix a SynSM mustache test (mustache library not strict mode friendly)
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a30165310f547c971c29438bc00b77a3e760b24f
User & Date: pavel.mash 2016-09-22 17:02:34
Context
2016-09-23
06:49
{2991} merge a {2967} commit to trunk check-in: ee467188cd user: pavel.mash tags: trunk
2016-09-22
17:02
{2967} fix a SynSM mustache test (mustache library not strict mode friendly) check-in: a30165310f user: pavel.mash tags: trunk
2016-09-18
17:23
{2966} overloaded TSQLRest.AsynchRedirect() method accepting a TInterfacedObject as destination check-in: 4221498139 user: ab tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to SQLite3/Samples/23 - JavaScript Tests/SynSMSelfTest.pas.

1823
1824
1825
1826
1827
1828
1829






1830
1831
1832
1833
1834
1835
1836
  engine: TSMEngine;
  mSource: SynUnicode;
  mustacheFN: TFileName;
  mustache: RawByteString;
  i: integer;
begin
  engine := FManager.ThreadSafeEngine;






  mustacheFN := ExeVersion.ProgramFilePath + 'js\mustache.js';
  mSource := AnyTextFileToSynUnicode(mustacheFN);
  if mSource='' then begin
    mustache := TWinINet.Get('https://github.com/janl/mustache.js/raw/master/mustache.js');
    if PosEx('return send(result);',mustache)=0 then begin
      i := PosEx('send(result);',mustache);
      if i>0 then






>
>
>
>
>
>







1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
  engine: TSMEngine;
  mSource: SynUnicode;
  mustacheFN: TFileName;
  mustache: RawByteString;
  i: integer;
begin
  engine := FManager.ThreadSafeEngine;
  // mustache.js is not strict mode friendly :(
  {$ifdef FIXBUGXE3}
  engine.cx.SetOptions(engine.cx.GetOptions - [jsoExtraWarning]);
  {$else}
  engine.cx.Options := engine.cx.Options - [jsoExtraWarning];
  {$endif}
  mustacheFN := ExeVersion.ProgramFilePath + 'js\mustache.js';
  mSource := AnyTextFileToSynUnicode(mustacheFN);
  if mSource='' then begin
    mustache := TWinINet.Get('https://github.com/janl/mustache.js/raw/master/mustache.js');
    if PosEx('return send(result);',mustache)=0 then begin
      i := PosEx('send(result);',mustache);
      if i>0 then

Changes to SynopseCommit.inc.

1
'1.18.2966'
|
1
'1.18.2967'